// 用户信息接口
export interface UserInfo {
  id: number
  username: string
  nickname: string
  email: string
  avatar: string
  role: 'admin' | 'user'
  status: number
  createTime: string
  updateTime: string
}

// 登录表单接口
export interface LoginForm {
  username: string
  password: string
  remember?: boolean
}

// 注册表单接口
export interface RegisterForm {
  username: string
  password: string
  confirmPassword: string
  email: string
  nickname: string
  verificationCode: string
}

// 更新用户信息表单接口
export interface UpdateUserForm {
  nickname?: string
  email?: string
  avatar?: string
}

// 用户列表查询参数
export interface UserListParams {
  page: number
  size: number
  keyword?: string
  role?: string
  status?: number
  startTime?: string
  endTime?: string
}

// 用户列表响应
export interface UserListResponse {
  list: UserInfo[]
  total: number
  page: number
  size: number
}